package string;
//char类型charAt()
public class CharAtDemo {
    public static void main(String[] args) {
        //                     011111
   //                0123456789112345
        String str ="thinking in java"; //下标也是从0开始
        char c=str.charAt(7);//获取str中下标为7所对应的字符
        System.out.println(c);//g
    }
}
